package p270jp.pxv.android.model;

import p056bp.LocalDate;
import p056bp.ZoneId;
import p056bp.ZonedDateTime;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.legacy.constant.SearchDuration;
import p325m0.MutabilityOwnership;

/* compiled from: SearchDurationNormalSettingCreator.kt */
/* renamed from: jp.pxv.android.model.SearchDurationNormalSettingCreator */
/* loaded from: classes2.dex */
public final class SearchDurationNormalSettingCreator {
    private final ZonedDateTime standardZonedDateTime;
    public static final Companion Companion = new Companion(null);
    public static final int $stable = 8;

    /* compiled from: SearchDurationNormalSettingCreator.kt */
    /* renamed from: jp.pxv.android.model.SearchDurationNormalSettingCreator$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final SearchDurationNormalSettingCreator createDefaultInstance() {
            ZonedDateTime P = ZonedDateTime.m9989K().m9984P(-1);
            return new SearchDurationNormalSettingCreator(P.mo7942F(ZoneId.m10006o("Asia/Tokyo").mo9995n().mo5780a(P.m7945z())));
        }
    }

    /* compiled from: SearchDurationNormalSettingCreator.kt */
    /* renamed from: jp.pxv.android.model.SearchDurationNormalSettingCreator$WhenMappings */
    /* loaded from: classes2.dex */
    public /* synthetic */ class WhenMappings {
        public static final /* synthetic */ int[] $EnumSwitchMapping$0;

        static {
            int[] iArr = new int[SearchDuration.values().length];
            iArr[SearchDuration.ALL.ordinal()] = 1;
            iArr[SearchDuration.WITHIN_YEAR.ordinal()] = 2;
            iArr[SearchDuration.WITHIN_HALF_YEAR.ordinal()] = 3;
            iArr[SearchDuration.WITHIN_LAST_MONTH.ordinal()] = 4;
            iArr[SearchDuration.WITHIN_LAST_WEEK.ordinal()] = 5;
            iArr[SearchDuration.WITHIN_LAST_DAY.ordinal()] = 6;
            $EnumSwitchMapping$0 = iArr;
        }
    }

    public SearchDurationNormalSettingCreator(ZonedDateTime uVar) {
        MutabilityOwnership.m3745m(uVar, "standardZonedDateTime");
        this.standardZonedDateTime = uVar;
    }

    public final SearchDurationSetting create(SearchDuration searchDuration) {
        MutabilityOwnership.m3745m(searchDuration, "searchDuration");
        LocalDate gVar = this.standardZonedDateTime.f5134b.f5078b;
        switch (WhenMappings.$EnumSwitchMapping$0[searchDuration.ordinal()]) {
            case 1:
                return new SearchDurationSetting(null, null);
            case 2:
                return new SearchDurationSetting(gVar.m10095S(1), gVar);
            case 3:
                return new SearchDurationSetting(gVar.m10097Q(6), gVar);
            case 4:
                return new SearchDurationSetting(gVar.m10097Q(1), gVar);
            case 5:
                return new SearchDurationSetting(gVar.m10096R(1), gVar);
            case 6:
                return new SearchDurationSetting(gVar, gVar);
            default:
                throw new IllegalArgumentException();
        }
    }
}
